package com.zhanyurui.consumer.controller;

import com.zhanyurui.consumer.remote_service.ProviderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description TODO
 * @Date 2024/8/6 10:14
 * @Created by 10574
 */
@RestController
@RequestMapping("test")
public class TestController {
    private final ProviderService providerService;

    public TestController(ProviderService providerService) {
        this.providerService = providerService;
    }
    @RequestMapping("hello")
    public String hello(){
        return providerService.hello();
    }
}
